import http from '@/plugins/axios/index.js';
/* 
    用户管理
*/

//根据用户的id查询用户的信息
export const getArticleByPage = params => {
  return http(`/article/list`, params).then(res => res);
};

//根据用户的id查询用户的信息
export const getArticleBasicInfoById = params => {
  return http(`/article/info/${params}`, params , {
    method: 'GET'
  }).then(res => res);
};
//根据用户的id查询用户的信息
export const deleteArticleBasicInfoById = params => {
  return http(`/article/delete/${params}`, params , {
    method: 'GET'
  }).then(res => res);
};

//根据用户的id查询用户的信息
export const updateArticleInfoByToken = params => {
  return http(`/article/update`, params).then(res => res);
};
